﻿@model YogaStudio.Data.Domain.Product

@{
    ViewBag.Title = "Details";
}

<div class="main">
    <div class="content">
        <div class="section group">
            <div class="col span_2_of_3">
                <div class="contact-form">

                    <h3>Product Details</h3>
                    <table class="details">
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.Category.CategoryName)
                            </td>

                            <td>
                                @Html.DisplayFor(model => model.Category.CategoryName)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.ProductName)
                            </td>

                            <td>
                                @Html.DisplayFor(model => model.ProductName)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.Description)
                            </td>

                            <td>
                                @Html.DisplayFor(model => model.Description)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.SearchAttributes)
                            </td>

                            <td>
                                @Html.DisplayFor(model => model.SearchAttributes)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.ImageUrl)
                            </td>

                            <td>
                                <img src="@Url.Content(Model.ImageUrl ?? "~/Content/Images/DefaultPicture.jpeg")" alt="Image Not Found" height="30" width="30" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.Price)
                            </td>

                            <td>
                                @Html.DisplayFor(model => model.Price)
                            </td>
                        </tr>
                        <tr>
                            <td>
                                @Html.DisplayNameFor(model => model.IsAvailable)
                            </td>

                            <td>
                                @Html.DisplayFor(model => model.IsAvailable)
                            </td>
                        </tr>
                    </table>
                    <p>
                        @Html.ActionLink("Edit", "Edit", new { id = Model.CategoryId }, new { @class = "btn", @id = "bluebck" })
                        @Html.ActionLink("Back to List", "Index", null, new { @class = "btn", @id = "bluebck" })
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>

